package com.tungse.study.mixed_model;

/**
 * 乘法表达式
 * @author Tungse
 */
public class MultExpression implements Expression {
    Expression left;
    Expression right;
    public MultExpression(Expression left, Expression right){
        this.left = left;
        this.right = right;
    }

    @Override
    public double getValue() {
        return left.getValue() * right.getValue() ;
    }
}
